package cLog

import (
	"gitee.com/csingo/cComponents"
)

type LogComponent struct{}

func (i *LogComponent) Inject(instance any) bool {
	return false
}

func (i *LogComponent) InjectConf(config cComponents.ConfigInterface) bool {
	if config.ConfigName() == LogConfigName {
		log_config = config.(*LogConf)
		return true
	}

	return false
}

func (i *LogComponent) Load() {
	load()
}

func (i *LogComponent) Listen() []*cComponents.ConfigListener {
	return []*cComponents.ConfigListener{}
}

var Component = &LogComponent{}
